package com.badger.openfeign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.badger.openfeign.api.DemoFeignApi;

@RestController
public class DemoController {
    @Autowired
    DemoFeignApi api;

    @GetMapping("/feign/demo")
    public String demo() {
        return api.demo();
    }
}
